package com.hans.myscanner.Scanner.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;

import com.haha.extend.HeadBar.BaseHeaderView;
import com.haha.extend.HeadBar.ImageInLeftAndRight;
import com.hans.myscanner.R;

/**
 * Created by Administrator on 2016/7/14.
 */
public class EncodeUrlActivity extends AppCompatActivity{
    private EditText urlET;
    private ImageInLeftAndRight header;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.avctivity_encode_url);
    }
    private void findView() {
        urlET= (EditText) findViewById(R.id.text_et);
        header= (ImageInLeftAndRight) findViewById(R.id.header);

    }
    private void initView() {
        header.setOnHeaderClickListener(onHeaderClickListener);

    }
    private BaseHeaderView.OnHeaderClickListener onHeaderClickListener=new BaseHeaderView.OnHeaderClickListener() {
        @Override
        public void onHeaderLeftClicked() {
            finish();
        }

        @Override
        public void onHeaderCenterClicked() {

        }

        @Override
        public void onHeaderRightClicked() {
            startActivity(new Intent(EncodeUrlActivity.this,DecodedTextActivity.class));
        }
    };
    private View.OnClickListener onClickListener=new View.OnClickListener() {
        @Override
        public void onClick(View v) {
        }
    };
}
